package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工单留言表
 * </p>
 *
 * @author WEN
 * @since 2023-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjWorkLeaveMessage对象", description="工单留言表")
public class ZjWorkLeaveMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "工单表ID")
    private Long workId;

    @ApiModelProperty(value = "工单单号")
    private String workNo;

    @ApiModelProperty(value = "可见类型：0-公开，1-服务商，2-工程师，3-工单客户，4-工单客服，5-品牌商家")
    private Integer visitType;

    @ApiModelProperty(value = "操作人员类型：1-客服，2-服务商，3-工程师，4-工单客户，5-品牌商家")
    private Integer empType;

    @ApiModelProperty(value = "操作人员ID")
    private Long empId;

    @ApiModelProperty(value = "操作人员")
    private String emp;

    @ApiModelProperty(value = "留言内容")
    private String content;

    @ApiModelProperty(value = "是否客服已读：0-未读，1-已读")
    @TableField("is_emp_read")
    private Boolean empRead;

    @ApiModelProperty(value = "是否服务商已读：0-未读，1-已读")
    @TableField("is_network_read")
    private Boolean networkRead;

    @ApiModelProperty(value = "是否工程师已读：0-未读，1-已读")
    @TableField("is_engineer_read")
    private Boolean engineerRead;

    @ApiModelProperty(value = "是否工单客服已读：0-未读，1-已读")
    @TableField("is_user_read")
    private Boolean userRead;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
